﻿using System.ComponentModel;

namespace JinShun.OA.UI.Models
{
    /// <summary>
    /// 岗位表
    ///</summary>
    public class PostModel
    {
        /// <summary>
        /// 主键
        /// </summary>
        [DisplayName("岗位编号")]
        public  Guid Id { get;  set; }

            /// <summary>
            /// 逻辑删除
            /// </summary>
            public bool IsDeleted { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [DisplayName("创建时间")]
        public DateTime CreationTime { get; set; } = DateTime.Now;

            /// <summary>
            /// 创建者
            /// </summary>
            public Guid? CreatorId { get; set; }

            /// <summary>
            /// 最后修改者
            /// </summary>
            public Guid? LastModifierId { get; set; }

            /// <summary>
            /// 最后修改时间
            /// </summary>
            public DateTime? LastModificationTime { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        [DisplayName("排序")]
        public int OrderNum { get; set; } = 0;

        /// <summary>
        /// 状态
        /// </summary>
        [DisplayName("岗位状态")]
        public bool State { get; set; } = true;

        /// <summary>
        /// 岗位编码 
        ///</summary>
        [DisplayName("岗位编码")]
        public string PostCode { get; set; } = string.Empty;
        /// <summary>
        /// 岗位名称 
        ///</summary>
        [DisplayName("岗位名称")]
        public string PostName { get; set; } = string.Empty;

        /// <summary>
        /// 描述 
        ///</summary>
        [DisplayName("岗位描述")]
        public string? Remark { get; set; }
    }
}
